home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / DBL Pascal Library / LayerMgr / Re Layer Manager? < prev    next >
Text File  |  1993-02-22  |  2KB  |  56 lines

  1.  
  2.           Tuesday, February 23, 1993 1:28:13 AM
  3.           Message
  4.    From:          Rick Holzgrafe,rmh@taligent.com,Internet
  5.    Subject:       Re: Layer Manager?
  6.    To:            David B. Lamkins
  7. In article <1993Feb22.034718.161750@fourd.com>, David_B._Lamkins@fourd.com
  8. writes:
  9. > Has anyone successfully used the Layer Manager interface (posted a while back
  10. > by Michael Hecht) to _hide_ a process? I've had no problems inquiring about
  11. > the visibility, but whenever I try to hide a process' layer (using the layer
  12. equivalents
  13. > of HideWindow or HideShowWindow) I seem to get memory writes to places they
  14. > shouldn't go -- in the middle of some Finder code on my system...
  15.  
  16. I haven't tried to use the layer manager. Anything that's that complex and
  17. undocumented is either too flaky to be used except in certain careful ways, or
  18. is expected to change significantly in future system releases.
  19.  
  20. If you can be happy with the options presented by the Application menu (I can
  21. think of cases where you wouldn't), you can "Hide This App" or "Hide Others"
  22. with a single line of code. In C:
  23.  
  24.     SystemMenu (0xBF970001);    // Hide This App
  25.     SystemMenu (0xBF970002);    // Hide Others
  26.  
  27. SystemMenu is documented in IM Vol. I as the way the system handles Desk
  28. Accessory menus. It has been expanded to handle the System 7 system menus as
  29. well, but that fact is not documented. This method, therefore, can fail if Apple
  30. changes the behavior of SystemMenu, or the menu ID of the Application menu, or
  31. the order of items in the Application menu.
  32.  
  33. Hope this helps.
  34.  
  35. -- Rick Holzgrafe
  36.    Semicolon Software
  37.    rmh@taligent.com
  38.  
  39.  
  40.  
  41. ------ Internet Message Header Follows ------
  42. From rmh@taligent.com  Mon Feb 22 16:26:00 1993
  43. Received: from taligent.com by uu5.psi.com (5.65b/4.0.071791-PSI/PSINet) via SMTP;
  44.         id AA19415 for David_B._Lamkins; Mon, 22 Feb 93 16:26:00 -0500
  45. Received: from rick-holzgrafe.taligent.com by taligent.com with SMTP (5.67/23-Oct-1991-eef)
  46.     id AA09063; Mon, 22 Feb 93 13:23:24 -0800
  47.     for 
  48. Date: Mon, 22 Feb 93 13:23:24 -0800
  49. Message-Id: <9302222123.AA09063@taligent.com>
  50. From: rmh@taligent.com (Rick Holzgrafe)
  51. To: David_B._Lamkins@fourd.com
  52. Subject: Re: Layer Manager?
  53. Organization: Semicolon Software
  54.  
  55.